<template>
  <van-swipe class="my-swipe sdy-detail-banner" :autoplay="3000" indicator-color="red">
    <van-swipe-item v-for="item in list" :key="item">
      <img :src="item" />
    </van-swipe-item>
  </van-swipe>
</template>

<script setup lang="ts" name="sdyDetailBanner">
// 接受传递过来的轮播图列表
defineProps<{ list: string[] }>()
</script>

<style scoped lang="scss">
.sdy-detail-banner {
  width: 100%;
  height: 390px;
  padding-bottom: 30px;
  background-color: skyblue;

  img {
    width: 100%;
    height: 100%;
    display: block;
  }
}
</style>
